from django.shortcuts import render,redirect
from django.contrib.auth.hashers import make_password, check_password
from django.http import HttpResponse,JsonResponse
from django.core.urlresolvers import reverse


# Create your views here.
def index(request):
    return render(request,'myhome/index.html')

#登陆
def denglu(request):
    return render(request,'myhome/denglu.html')

#注册
def zhuce(request):
    if request.method=='GET':
        return render(request,'myhome/zhuce.html')
    elif request.mothod=='POST':
        #接收数据
        user=request.POST.dict()
        return HttpResponse('ok')

